﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using DTO;

namespace BLL
{
    public class TimKiemHSBLL
    {
        
        QuanLyDiemDataContext DB = new QuanLyDiemDataContext();
        public IQueryable TimKiemTen(string hoten)
        {
            return DB.HocSinhs.Where(s=>s.HoTen.Contains(hoten)).OrderByDescending(s => s.MaHocSinh).AsQueryable();
        }

        public IQueryable TimKiemMa(string mahs)
        {
            return DB.HocSinhs.Where(s => s.MaHocSinh == mahs).OrderByDescending(s => s.MaHocSinh).AsQueryable();
        }
    }
}
